//
//  collModel.m
//  iNews
//
//  Created by lanou3g on 14-12-12.
//  Copyright (c) 2014年 张在青. All rights reserved.
//

#import "collModel.h"
#define kTitle @"title"
#define kCover @"cover"
@implementation collModel

//归档
-(void)encodeWithCoder:(NSCoder *)aCoder{

//对属性进行编码
    
    [aCoder encodeObject:self.title forKey:kTitle];
    [aCoder encodeObject:self.cover forKey:kCover];
    
}

//反归档
-(id)initWithCoder:(NSCoder *)aDecoder{

    self = [super init];
    //反编码
    if (self) {
        self.title = [aDecoder decodeObjectForKey:kTitle];
        
        self.cover = [aDecoder decodeObjectForKey:kCover];
    }
   
    return self;
}


@end
